package com.maoyanjava.controller;

import com.maoyanjava.pojo.TypeF;
import com.maoyanjava.service.TypeFService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class TypeTController {
    @Autowired
    private TypeFService ts;
    //类名
    @GetMapping("/alltypef")
    public List<TypeF> getAll(){
        return ts.getAll();
    }
}
